From bbe568ca78f47f3e7188154b35e53859d75f8472 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 20 Dec 2007 10:35:22 +0000 Subject: [PATCH] ioemu: Do not close slave half of a pty. Signed-off-by: Keir Fraser --- tools/ioemu/vl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 01f4bc7ef6..bb12a3fd99 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -1876,8 +1876,6 @@ static CharDriverState *qemu_chr_open_pty(void) /* Set raw attributes on the pty. */ cfmakeraw(&tty); tcsetattr(slave_fd, TCSAFLUSH, &tty); - - close(slave_fd); fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd)); -- 2.30.2